using System;
using FluentNHibernate.Automapping;
using FluentNHibernate.Automapping.Alterations;
using MvcMall.Core.Domains;

namespace MvcMall.Data.NHibernateMaps
{
    public class UserGoodsFavoriteMap : IAutoMappingOverride<UserGoodsFavorite>
    {
        public void Override(AutoMapping<UserGoodsFavorite> mapping)
        {
            mapping.References(c => c.User).Column("UserId");
            mapping.References(c => c.Goods).Column("GoodsId");
        }
    }
}